recents();
sleep(1000);
click(device.width / 2, device.height / 2);
sleep(1000)
text = "12QW"
for (n in text) {
    if (/[a-z,0-9]/i.test(text[n])) {
        rect = className("android.view.View").text(text[n]).findOne().bounds();
        press(rect.left, rect.centerY(),500);
        sleep(500);
    } else if (text[n] == " ") {
        sleep(300);
    } else {
        sleep(350);
    }
}
